﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BugzX.Models.ProjectViewData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentMain" runat="server">

    <% if(this.Model != null && !String.IsNullOrEmpty(this.Model.ErrorMessage)) { %>
        <div class="ui-state-error"><%= this.Model.ErrorMessage %></div>
    <% } %>

    <form action="/project/new/" method="post" enctype="multipart/form-data">

        <h2>New Project</h2>

        <p>
            <%: Html.LabelFor(model => model.Name) %>
            <%: Html.TextBoxFor(model => model.Name) %>
        </p>

        <p>
            <label for="fuLogo">Logo</label>
            <input type="file" id="fuLogo" name="fuLogo" />
        </p>

        <h2>Component</h2>

        <p>
            <%: Html.LabelFor(model => model.ComponentName) %>
            <%: Html.TextBoxFor(model => model.ComponentName)%>
        </p>

        <p>
            <input type="submit" value="Create" />
        </p>
    </form>

    <button id="buttonBack">Back to List</button>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentJQuery" runat="server">

    $(":submit").button();
    $(":button").button();

    $("#buttonBack").click(function () {

        window.location = "/";
    });

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="contentHead" runat="server">
</asp:Content>

